﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VERKProjectHopur16.Models.TopDepViewModel>" %>
<%@ Import Namespace="VERKProjectHopur16.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    IRIS front page
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>IRIS</h2>
    <div class="language">
   	<div class="outer_container"> 
    <div class="inner_container" style="position:relative; width: 150px;">
    
    <%
        var l = Lang.GetFlag(Session["langFront"]); 
    %>
          <form action=".">
	        <select id="contlangsel" name="custom_markup_example"> 
		    <option title="<div><span class='flagmenuitem <%: l %>'></span> Content language</div>"></option> 
		    <option title="<div><span class='flagmenuitem all'></span> All language</div>" value="4"></option> 
		    <option title="<div><span class='flagmenuitem is'></span> Iceland</div>" value="2"></option> 
		    <option title="<div><span class='flagmenuitem en'></span> English</div>" value="1"></option> 
	        <option title="<div><span class='flagmenuitem se'></span> Swedish</div>" value="3"></option> 
            </select>
         </form>
    </div></div></div>

    <h3><%: Lang.GetText("Menu", "Recent_news") %></h3>

    <div id="tabs" class="tabs">
        <ul>
            <li><a href="#fragment-1"><span><%: Lang.GetText("Menu", "All") %></span></a></li>
            <li><a href="#fragment-2"><span><%: Lang.GetText("Menu", "Medicine") %></span></a></li>
            <li><a href="#fragment-3"><span><%: Lang.GetText("Menu", "Psychology")%></span></a></li>
            <li><a href="#fragment-4"><span><%: Lang.GetText("Menu", "Sociology") %></span></a></li>
        </ul>
        <div id="fragment-1">
            <table class="tabcontent">
                <thead>
                    <tr>
                        <th><%: Html.ActionLink(Lang.GetText("Menu", "News"), "AllNews", "Content")%></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <ul class="newsmenulist">
                            <% 
                                var i = 0;
                                foreach (var content in Model.topAllContent.topNews) 
                            { %>
                                <li><span class="counter"><%: ++i %>.</span> <%= Html.ActionLink(content.Title, "SingleContent", new { id = content.ContentID })%></li>
                            <% } %>
                            </ul>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="fragment-2">
            <table class="tabcontent">
                <thead>
                    <tr>
                        <th><%: Html.ActionLink(Lang.GetText("Menu", "News"), "AllNews", "Content")%></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <ul class="newsmenulist">
                            <% 
                                i = 0;
                                foreach (var content in Model.topMedContent.topNews) 
                            { %>
                                <li><span class="counter"><%: ++i %>.</span> <%= Html.ActionLink(content.Title, "SingleContent", new { id = content.ContentID })%></li>
                            <% } %>
                            </ul>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="fragment-3">
            <table class="tabcontent">
                <thead>
                    <tr>
                        <th><%: Html.ActionLink(Lang.GetText("Menu", "News"), "AllNews", "Content")%></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <ul class="newsmenulist">
                            <%
                                i = 0;
                                foreach (var content in Model.topPsyContent.topNews) 
                            { %>
                                <li><span class="counter"><%: ++i %>.</span> <%= Html.ActionLink(content.Title, "SingleContent", new { id = content.ContentID })%></li>
                            <% } %>
                            </ul>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="fragment-4">
            <table class="tabcontent">
                <thead>
                    <tr>
                        <th><%: Html.ActionLink(Lang.GetText("Menu", "News"), "AllNews", "Content")%></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <ul class="newsmenulist">
                            <% 
                                i = 0;
                                foreach (var content in Model.topSocContent.topNews) 
                            { %>
                                <li><span class="counter"><%: ++i %>.</span> <%= Html.ActionLink(content.Title, "SingleContent", new { id = content.ContentID })%></li>
                            <% } %>
                            </ul>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <h3><%: Lang.GetText("Menu", "Recent_content") %></h3>

    <div id="tabss" class="tabs">
        <ul>
            <li><a href="#fragment-5"><span><%: Lang.GetText("Menu", "All") %></span></a></li>
            <li><a href="#fragment-6"><span><%: Lang.GetText("Menu", "Medicine") %></span></a></li>
            <li><a href="#fragment-7"><span><%: Lang.GetText("Menu", "Psychology")%></span></a></li>
            <li><a href="#fragment-8"><span><%: Lang.GetText("Menu", "Sociology") %></span></a></li>
        </ul>
        <div id="fragment-5" class="tabs">
            <ul class="tabcontent">
                <% foreach (var content in Model.topAllContent.TopContent) 
                { %>
                    <li class="fp-single-content">
                        <h4>&raquo; <%= Html.ActionLink(content.Title, "SingleContent", new { id = content.ContentID })%></h4>
                        <span>- <%: content.InsertDate.ToString("dddd, dd MMMM yyyy")%></span>
                        <%= content.Text %>
                        <h5><%: content.Author.Name %></h5>
                    </li>
                <% } %>
            </ul>
        </div>
        <div id="fragment-6" class="tabs">
            <ul class="tabcontent">
                <% foreach (var content in Model.topMedContent.TopContent) 
                { %>
                    <li class="fp-single-content">
                        <h3>&raquo; <%= Html.ActionLink(content.Title, "SingleContent", new { id = content.ContentID })%></h3>
                         <span>- <%: content.InsertDate.ToString("dddd, dd MMMM yyyy")%></span>
                         <%= content.Text %>
                         <h5><%: content.Author.Name %></h5>
                    </li>
                <% } %>
            </ul>
        </div>
        <div id="fragment-7" class="tabs">
            <ul class="tabcontent">
                <% foreach (var content in Model.topPsyContent.TopContent) 
                { %>
                    <li class="fp-single-content">
                        <h3>&raquo; <%= Html.ActionLink(content.Title, "SingleContent", new { id = content.ContentID })%></h3>
                        <span>- <%: content.InsertDate.ToString("dddd, dd MMMM yyyy")%></span>
                        <%= content.Text %>
                        <h5><%: content.Author.Name %></h5>
                    </li>
                <% } %>
            </ul>
        </div>
        <div id="fragment-8" class="tabs">
            <ul class="tabcontent">
                <% foreach (var content in Model.topSocContent.TopContent) 
                { %>
                    <li class="fp-single-content">
                        <h3>&raquo; <%= Html.ActionLink(content.Title, "SingleContent", new { id = content.ContentID })%></h3>
                        <span>- <%: content.InsertDate.ToString("dddd, dd MMMM yyyy")%></span>
                        <%= content.Text %>
                        <h5><%: content.Author.Name %></h5>
                    </li>
                <% } %>
            </ul>
        </div>
    </div>
</asp:Content>
